package cn.zn.modules.pz.his.entity.dto;

import cn.zn.framework.common.abs.AbsPage;
import cn.zn.framework.common.utils.PageInUtils;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 凭证查询DTO
 */
@Data
public class PzQueryDTO extends AbsPage {
    @NotNull(message = "ap 不能为空")
    private Integer ap;
    @NotNull(message = "applyType 不能为空")
    private String applyType;
    private String applyCode;
    private Double moneyStart;
    private Double moneyEnd;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date applyDateStart;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date applyDateEnd;
    private String key;
    private String applyUserCode;
    /**
     * 只看自己
     */
    private Boolean onlyMe;

    @Override
    public Wrapper getWrapper() {
        return null;
    }
}
